package com.morizhang.usersys.api.utils;

import com.morizhang.usersys.api.model.UserModel;

public class UserUtils {
    public static Boolean userFormCheck(UserModel user) {
        String userID = user.getUserID();
        String userName = user.getUserName();
        String password = user.getPassword();
        if (userID == null || userID.length() == 0) {
            return false;
        }
        if (userName == null || userName.length() == 0) {
            return false;
        }
        if (password == null || password.length() != 32) {
            return false;
        }
        return true;
    }
}
